package com.cm.drinks;

public abstract class Drink {
    private String name;
    private double price;
    private boolean extraHot;

    public Drink(String name, double price, boolean extraHot) {
        this.name = name;
        this.price = price;
        this.extraHot = extraHot;
    }

    public boolean isExtraHot() {
        return extraHot;
    }

    public double getPrice() {
        return price;
    }

    public abstract String getCode();

    public String getName() {
        return name;
    }
}
